package com.huathy.springbootfirst.firstDemo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Huathy
 * @date 2021-11-08 23:42
 * @description
 */
public class ConfigurationMain {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new  AnnotationConfigApplicationContext(ConfigurationDemo.class);
        DemoClass demoClass = applicationContext.getBean(DemoClass.class);//dl
        demoClass.say();
    }
}
